﻿package  {
	import flash.events.Event;
	
	public class IMEvent extends Event {
		public static const LOGINOK:String="LOGINOK";
		public static const RECVMSG:String="RECVMSG";
		public static const SENDMSGOK:String="SENDMSGOK";
		public static const SENDMSGERROR:String="SENDMSGERROR";
		
		public static const USERJOINROOM:String="USERJOINROOM";
		public static const USEREXITROOM:String="USEREXITROOM";
		
		public static const EXITROOMOK:String="EXITROOMOK";
		public static const JIONROOMERROR:String="JIONROOMERROR";
		public static const JOINROOMOK:String="JOINROOMOK";
		public static const ROOMUSERLIST:String="ROOMUSERLIST";
		public static const RECVROOMMSG:String="RECVROOMMSG";
		public static const ROOMUSERCOUNT:String="ROOMUSERCOUNT";
		public static const KILLUSEROK:String="KILLUSEROK";
		public static const CHECKUSER:String="CHECKUSER";
		public static const BEKILLED:String="BEKILLED";
		
		public static const RECVSYSMSG:String="RECVSYSMSG";
		public static const SENDSYSMSGOK:String="SENDSYSMSGOK";
		
		public static const CMDERROR:String="ERROR";
		
		public var fromuserid:String;
		public var touserid:String;
		public var msgconetnt:String;
		public var peeruserid:String;
		public var userlist:Array;
		public var pub:Boolean;
		public var content:String;
		
		public function IMEvent(type:String,bubbles:Boolean=false,cancelable:Boolean=false) {
			// constructor code
			super(type,bubbles,cancelable);
		}

	}
	
}
